package com.manage.system.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manage.common.core.result.JsonResult;
import com.manage.system.api.entity.SysOperateLog;
import com.manage.system.api.request.log.LoginLogQueryParam;
import com.manage.system.api.request.log.OperateLogQueryParam;

import java.util.List;

/**
 * <p>
 * 操作日志 服务类
 * </p>
 *
 * @author zhangqing
 * @since 2021-07-16
 */
public interface ISysOperateLogService extends IService<SysOperateLog> {

    /**
     * 添加操作日志
     * @param sysOperateLog 操作日志对象
     */
    void addLoginLog(SysOperateLog sysOperateLog);

    /**
     * 分页查询操作日志
     * @param operateLogQueryParam 操作日志查询对象
     * @return 统一返回对象
     */
    JsonResult findOperateLogPage(OperateLogQueryParam operateLogQueryParam);

    JsonResult delOneOperateLog(Long operateLogId);

    /**
     *
     * @return 统一响应
     */
    JsonResult delAllOperateLog();

    /**
     *
     * @param ids 操作日志id集合
     * @return 统一响应
     */
    JsonResult batchDelOperateLog(List<Long> ids);
}
